<div class="page-header">
  <h1>Регистрация поставщика</h1>
</div>

<?php echo CHtml::form(Yii::app()->urlManager->baseUrl.'/registration/shop/', 'post'); ?>
<?php echo CHtml::errorSummary($user); ?>
<?php echo CHtml::errorSummary($shop); ?>
<table>
	 <tr>
        <td><?php echo CHtml::activeLabel($shop, 'name', array('label' => 'Название магазина:')); ?></td>
        <td><?php echo CHtml::activeTextField($shop, 'name', array('placeholder' => 'test placeholder', 'class' => 'form-control')); ?></td>
     </tr>
	 <tr>
        <td><?php echo CHtml::activeLabel($shop, 'site_link', array('label' => 'Cсылка на сайт:')); ?></td>
        <td><?php echo CHtml::activeTextField($shop, 'site_link', array('placeholder' => 'test placeholder', 'class' => 'form-control')); ?></td>
     </tr>
     <tr>
        <td><?php echo CHtml::activeLabel($user, 'Email', array('label' => 'Email:')); ?></td>
        <td><?php echo CHtml::activeTextField($user, 'email', array('placeholder' => 'Email address', 'class' => 'form-control')) ?></td>
     </tr>
	 <tr>
        <td><?php echo CHtml::activeLabel($user, 'phone', array('label' => 'Телефон:')); ?></td>
        <td><?php echo CHtml::activeTextField($user, 'phone', array('placeholder' => 'test placeholder', 'class' => 'form-control')); ?></td>
     </tr>
     <tr>
        <td><?php echo CHtml::activeLabel($shop, 'address', array('label' => 'Адрес:')); ?></td>
        <td><?php echo CHtml::activeTextField($shop, 'address', array('placeholder' => 'test placeholder', 'class' => 'form-control')); ?></td>
     </tr>
     <tr>
        <td><?php echo CHtml::activeLabel($user, 'pass', array('label' => 'Пароль:')); ?></td>
        <td><?php echo CHtml::activePasswordField($user, 'pass', array('placeholder' => 'pass', 'class' => 'form-control')) ?></td>
     </tr>     
     <tr>
        <td><?php echo CHtml::activeLabel($user, 'pass_repeat', array('label' => 'Повторите пароль:')); ?></td>
        <td><?php echo CHtml::activePasswordField($user, 'pass_repeat', array('placeholder' => 'pass repeat', 'class' => 'form-control')) ?></td>
     </tr>
     
    <tr>
        <td><?php $this->widget('CCaptcha', array('buttonLabel' => '<br>[новый код]')); ?></td>
        <td><?php echo CHtml::activeTextField($user, 'verifyCode', array('placeholder' => 'verify Code', 'class' => 'form-control')); ?></td>
    </tr>
    <tr>
        <td></td>
        <td><?php echo CHtml::submitButton('Регистрация', array('id' => 'submit', 'class' => 'btn btn-large btn-primary')); ?></td>
    </tr>
</table>
<?php echo CHtml::endForm(); ?>